require 'byebug'

class DefPrivateInstanceMethod
  def func1
    puts 'func1 is a instance public method'
  end

  public def func2
    puts 'func2 is a instance public method'
  end

  private def func3
    puts 'func3 is a instance private method'
  end

  def func4
    puts 'func4 is a instance private method'
  end
  private :func4
end

byebug
a = DefPrivateInstanceMethod.new

puts a.class
